package com.bristua.barcode.order.controller;
import com.bristua.barcode.common.bean.Result;
import com.bristua.barcode.common.util.HandleResultUtil;
import com.bristua.barcode.order.biz.GetCustomerOrderQrcodeBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/8/10 0010.
 */
@RestController
public class GetCustomerOrderQRcodeController {

    @Autowired
    private GetCustomerOrderQrcodeBiz getCustomerOrderQrcodeBiz;

    @PostMapping(value = "/order/get/code/{orderId}")
    public Result getCustomerOrderQRcode(@PathVariable(value = "orderId") String orderId){
        return HandleResultUtil.querySuccessResult(getCustomerOrderQrcodeBiz.getCustomerOrderQRcodeUrl(orderId));
    }
}
